DC Decoupled Current Measurement

ABSTRACT

A circuit arrangement for measuring a load current provided to a load via a first load terminal of a load transistor is disclosed. In accordance with one example of the invention, the circuit arrangement includes a sense transistor coupled to the load transistor to provide a sense current representing the load current at a first load terminal of the sense transistor. The first load terminals of the load and the sense transistors are at respective floating electric potentials. A floating sense circuit coupled between the load terminals of sense transistor and load transistor, at least in one mode of operation the sense circuit receives the sense current and provides a floating signal representing the sense current. A non-floating measurement circuit is coupled to the sense circuit via a DC decoupling capacitor for transferring the floating signal representing the sense current to the non-floating measurement circuit. The measurement circuit is configured to provide an output signal representing the floating signal and thus the sense current.

This application is a continuation of U.S. patent application Ser. No.13/160,337, filed on Jun. 14, 2011, which application is herebyincorporated herein by reference in its entirety.

TECHNICAL FIELD

The present disclosure generally relates to current measurement, forexample, to digital output current measurement at high DC potentials.

BACKGROUND

For measuring the load current of a power transistor (particularly of anIGBT or a MOSFET) so-called sense-transistor arrangements are commonlyused. An early publication of such a sense-transistor arrangement is,for example, the U.S. Pat. No. 5,023,693. In particular when using thepower transistor as a high side semiconductor switch the load currentmay have to be measured at high DC potentials. Measuring current at ahigh DC potential usually requires the use of high voltage circuitcomponents in the measurement circuit. Such high voltage componentsentail a more complex circuit design and require a large amount of chiparea. Especially, when the measurement result is provided as a digitalvalue the requirement for a high proof-voltage includes considerableproblems in the circuit design. Thus, there is a need for a currentmeasurement circuit which allows for current measurement at high DCpotentials with only a few high voltage circuit components.

SUMMARY OF THE INVENTION

A circuit arrangement for measuring a load current provided to a loadvia a first load terminal of a load transistor is disclosed. Inaccordance with one example of the invention, the circuit arrangementincludes a sense transistor coupled to the load transistor to provide asense current representing the load current at a first load terminal ofthe sense transistor. The first load terminals of the load and the sensetransistors are at respective floating electric potentials. A floatingsense circuit coupled between the load terminals of sense transistor andload transistor, at least in one mode of operation the sense circuitreceives the sense current and provides a floating signal representingthe sense current. A non-floating measurement circuit is coupled to thesense circuit via a DC decoupling capacitor for transferring thefloating signal representing the sense current to the non-floatingmeasurement circuit. The measurement circuit is configured to provide anoutput signal representing the floating signal and thus the sensecurrent.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention can be better understood with reference to the followingdrawings and description. The components in the figures are notnecessarily to scale, instead emphasis being placed upon illustratingthe principles of the invention. Moreover, in the figures, likereference numerals designate corresponding parts. In the drawings:

FIG. 1 illustrates a general example of a sense-transistor arrangement;

FIG. 2 illustrates an example of a sense-transistor arrangement which isable to handle negative source potentials with respect to groundpotential;

FIG. 3 illustrates, as one exemplary embodiment of the invention, asense-transistor arrangement including a floating sense circuit and ameasurement circuit being DC decoupled therefrom;

FIG. 4 illustrates the example of FIG. 3 in more detail;

FIG. 5 a illustrates an alternative to the example of FIG. 4;

FIG. 5 b illustrates the example of FIG. 5 a in a first mode ofoperation; and

FIG. 5 c illustrates the example of FIG. 5 a in a second mode ofoperation;

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

FIG. 1 generally illustrates the operating principle of a sensetransistor arrangement wherein the present example includes MOSFETs aspower and sense transistors. The power transistor T_(L) may be composedof a plurality of transistor cells so as to be able to switch a highload current i_(L) supplied to a load having a load impedance Z_(L). Incontrast thereto, only one or a few transistor cells are used to formthe sense transistor T_(S), whereby the transistor cells of bothtransistors are essentially identical and may have one common drain (orcollector) terminal and one common gate terminal. The separated source(or emitter) terminals provide the load current i_(L) and the sensecurrent i_(S), respectively. Provided that both transistors are operatedin the same operating point, the sense current i_(S) is proportional tothe load current i_(L). The proportionality factor k=i_(L)/i_(S) isthereby determined by the ratio of the active area of the transistorsT_(L) and T_(S) which is equivalent to the ratio of the number oftransistor cells active in the transistors T_(L) and T_(S). The presentexample illustrates a common-drain/separated-source transistorstructure. Alternatively, common-source/separated-drain transistorstructures are applicable. It should be noted that the factor k mayusually range from 1000 (or below) up to 10000 or even above dependenton the application.

The sense current i_(S) may be measured in any useful way, the sensecurrent i_(S) may, for example, be drained via a measurement resistorR_(S) and the voltage drop i_(S)·R_(S)=i_(L)·R_(S)/k across themeasurement resistor R_(S) may be used as measurement value representingthe load current i_(L). As mentioned above, the proportionality betweenload current i_(L) and sense current i_(S) is maintained as long as bothtransistors are operated (at lease approximately) at the same operatingpoint, i.e., at the same drain-source voltage (or collector-emittervoltage) while being supplied with the same gate (or base) voltage. Inthe example of FIG. 1, the source potentials V_(S) and V_(L) of the twotransistors T_(S) and T_(L) should be essentially equal so as to complywith the condition discussed above and ensure proportionality betweenload and sense current.

As can be seen from FIG. 1, the source potential V_(S), V_(L) of eachtransistor T_(S), T_(L) may assume considerable high values when theload transistor T_(L) is driven into an on-state and thus the supplyvoltage V_(DD) is essentially applied to the load impedance Z_(L). Forthis reason, any measurement circuitry for directly or indirectlymeasuring the sense current i_(S) usually includes high-voltage proofcircuit components which has an adverse impact on the circuit design asalready mentioned further above. A further problem arises when the loadimpedance Z_(L) connected to the load transistor T_(L) includes aninductive component. In this case the source potential V_(L) of the loadtransistor T_(L) may assume negative values and the proportionalitybetween load and sense current can not be maintained when usingconventional sense-transistor arrangements.

FIG. 2 illustrates one example of a sense transistor arrangement whichallows for a current measurement even during periods of negative sourcepotentials V_(L). It is apparent from the circuit of FIG. 2 that such anapproach is inefficient in terms of chip space and power consumption.The required matching of the source voltages V_(L) and V_(S) is ensuredby a relatively small shunt resistor R_(S) coupled between the sourceterminals of load transistor T_(L) and sense transistor T_(S). Thevoltage difference V_(S)=i_(S)R_(S) has only a negligible impact on theoperating point of the sense transistor and thus the proportionalitybetween load and sense current is not affected. The operationalamplifier OA drives the gate of transistor T₁ such that the voltage dropacross resistor R₁ matches the voltage drop across the shunt resistorR_(S). The current through the transistor T₁ is “copied” by the currentminor composed of transistors T₂ and T₃ and the minor current i₂ isdrained via a resistor R₂ resulting in a voltage drop across V_(S)resistor R₂ which is (approximately) proportional to the load currenti_(L) even when the source potential V_(L) of the load transistor T_(L)is negative. In case the resistors R_(S), R₁, and R₂ have equalresistance values the sense voltage V_(S) yieldsV_(S)=i_(S)·R_(S)=i_(L)·R_(S)/k.

As mentioned above, an implementation simpler and more efficient thanthe example of FIG. 2 may be desirable. Further, the transistors T₁, T₂,and T₃ have to be high-voltage proof and thus require a large chip area.To improve this situation is a design goal for alternative approaches.

FIG. 3 illustrates one example of a sense-transistor arrangement formeasuring the sense current provided by a sense transistor T_(S) (whichis coupled to a load transistor T_(L) as in the previous examples) evenwhen the source potential V_(L) of the load transistor T_(L) falls belowground potential (e.g., due to an inductive load Z_(L)). The exemplarycircuit arrangement of FIG. 3 includes two electronically controllableswitches SW₁ and SW₂ which alternately switch on and off so as toprovide two different modes of operation (mode 1: SW₁=off and SW₂=on,mode 2: SW₁=on and SW₂=off).

In cases when the source potential V_(L) of the load transistor T_(L) isabove a threshold (e.g., when V_(L)>0V) switch SW₁ is switched off andswitch SW₂ is switched on (mode 1) resulting in a circuit equivalent tothe conventional circuit as illustrated in FIG. 1. The sense currenti_(S) may be drained to ground via a measurement resistor R_(S) coupledbetween the source of the sense transistor T_(S) and ground GND. Thevoltage drop i_(S)R_(S)=i_(L)R_(S)/k across the measurement resistorR_(S) may be taken as a measurement value (approximately) proportionalto the load current. The proportionality between sense current i_(S) andload current i_(L) is not perfect as the source potentials V_(L) andV_(S) may slightly differ from each other. However, this effect is smalland thus negligible provided that the source potentials are positive andthe voltage drop V_(DS) across the load paths of the transistors T_(S)and T_(L) is small compared to the supply voltage V_(DD).(V_(DS)=i_(L)R_(ON), R_(ON) being the on-resistance of the loadtransistor).

In cases when the source potential V_(L) of the load transistor T_(L) isbelow a threshold (e.g., when V_(L)<0V) switch SW₁ is switched on andswitch SW₂ is switched off (mode 2). As a result the sense current i_(S)is drained to ground via a floating sense circuit 10 and the loadimpedance Z_(L) as illustrated in FIG. 3. That is, the floating sensecircuit 10 coupled the source terminals of sense transistor T_(S) andload transistor T_(L), respectively. The sense circuit 10 is configuredto keep the potential difference V_(S)−V_(L) to ensure that bothtransistors operate (at least approximately) in the same operating point(i.e., the drain-source-voltages and the gate voltages of thetransistors are approximately the same). The floating sense circuit 10is further configured to sense a floating voltage signal representingthe sense current i_(S) and to transfer the signal level to aground-referenced measurement circuit 20 using a switched capacitorC_(D1). As a capacitor C_(D1) is used for transferring the sense currentinformation to the ground-referenced measurement circuit 20 the twocircuits (sense circuit 10 and measurement circuit 20) are DC decoupledallowing for almost arbitrarily high source potentials V_(S), V_(L). Theonly limiting parameter is the withstand voltage of the decouplingcapacitor C_(D1). FIG. 3 also includes a further capacitor C_(CLK), ACcoupling the floating sense circuit 10 and the measurement circuit 20.This capacitor C_(CLK) is provided to transfer a clock signal (CLK) fromthe “low side” (i.e., the measurement circuit 20) to the “high side”(i.e., the floating sense circuit 10), whereby the clock signal isrequired to control the switching operation of the switches.

The control of the switches (which may be regarded as a part of thesense circuit 10) is not illustrated herein in detail. However, any lowvoltage semiconductor switches (e.g., DMOS switches) may be used forthis purpose. The semiconductor switches may be driven to an on-state oran off-state by any appropriate circuitry known in the art. Themeasurement circuit 20 may be supplied by a separate supply voltageV_(S) lower than the supply voltage V_(DD) and may be configured totransform the sense current information obtained from the floating sensecircuit 10 to an (analog or digital) output signal x_(OUT) whichrepresents the load current i_(L) and may be adequately scaled forfurther processing. In essence the output signal is (at leastapproximately) proportional to the load current i_(L) as mentionedabove.

FIG. 4 illustrates the example discussed above with reference to FIG. 3in more detail. Particularly, one example of the implementation of thesense circuit 10 is given. It should be noted that the capacitor C_(CLK)and the details of the circuitry driving the switches have been omittedfor the ease of illustration. As already noted, circuitry for drivingthe semiconductor switches SW₁, SW₂, etc., is readily available.

During the above-mentioned operating mode 1 the present example of FIG.4 operates identically as the general example of FIG. 3. That is, thesense current i_(S) is drained via the measurement resistor R_(S1)connected between the source of the sense transistor T_(S) and groundGND, and the voltage drop across the resistor R_(S1) can be taken as ameasurement value representing the load current i_(L).

Further, in the present example, the floating sense circuit 10 includesa shunt resistor R_(S2) for providing, during the above mentionedoperating mode 2, a current path from the source of the sense transistorT_(S) to the source of the load transistor T_(L) (which is connected tothe load) in a similar way as it is the case in the example of FIG. 2.The switches SW₁ and SW₂ have the same function (i.e., mode switch) asin the general example of FIG. 3. Two further switches SW₃ and SW₄ areprovided to connect the “high side” terminal of the capacitor C_(D1)either with the terminal of the shunt resistor R_(S2) coupled to thesense transistor source or with the terminal of the shunt resistorR_(S2) coupled to the load transistor source. That is, the “high side”terminal of the capacitor C_(D1) coupling to the sense circuit 10 iseither switched to sense transistor source potential V_(S) or to loadtransistor source potential V_(L), wherein the potential differenceV_(S)−V_(L) equals the voltage drop R_(S2)i_(S) across the shuntresistor R_(S2) and thus

V _(S) −V _(L) =R _(S2) i _(S).   (1)

The “low side” terminal of the DC decoupling capacitor C_(D1) is coupledto the, e.g., ground-reference, measurement circuit 20. Provided thatthe capacitor C_(D1) is pre-charged to a defined voltage, such as, forexample, to a voltage V_(L) while switch SW₃ is closed and switch SW₄ isopen, and provided that the leakage current discharging the capacitorC_(D1) is negligible, the voltage drop R_(S2)i_(S) across the shuntresistor R_(S2) can be observed as voltage swing of the same amountR_(S2)i_(S) at the “low side” terminal of the capacitor C_(D1) whenswitching switch SW₃ off and switch SW₄ on. In this way the sensecurrent information can be transferred from the floating sense circuit10 to the ground-referenced (i.e., non-floating) measurement circuit 20without the need for a high-voltage proof circuit component except forthe decoupling capacitor C_(D1). As should become clear from thediscussion above, the switches SW₃ and SW₄ are alternately switched onand off and are never on simultaneously. That is, the two switches SW₃and SW₄ provide the function of a single changeover switch. The sameapplies for the switches SW₁ and SW₂ analogously which direct the sensecurrent either to the measurement resistor R_(S1) or to the shuntresistor R_(S2).

FIG. 5 a illustrates a more sophisticated alternative to the example ofFIG. 4. During operating mode 2 (i.e., sense current measurement usingthe shunt resistor R_(S2)) the example of FIG. 5 a illustrates exactlylike the example of FIG. 4. In this case the cascode transistor T_(C)blocks the sense current i_(S) and thus has the same effect as an openswitch SW₂ in the example of FIG. 4. Consequently switch SW₁ is closedduring this mode. The “remaining” active part of the circuit during thismode is illustrated in FIG. 5 c. The complementary situation (mode 1,cascode transistor T_(C) on, switch SW₁ off) is illustrated in FIG. 5 bwhere all the circuit components inactive during this mode have beenomitted to allow concentrating on the relevant parts of the circuit.Below the function of the circuit of FIG. 5 a will be explained withreference to FIGS. 5 b and 5 c which cover the effective circuit of FIG.5 a in mode 1 and 2, respectively.

In cases when the source potential V_(L) of the load transistor T_(L) isabove a threshold (e.g., when V_(L)>0V) switch SW₁ is switched off andthe cascode transistor T_(C) is in an on state (mode 1) resulting in aneffective circuit as illustrated in FIG. 5 b. Accordingly, the “highside” terminal of a decoupling capacitor C_(D2) is either connected tothe source potential V_(S) of the sense transistor T_(S) or to thesource potential V_(L) of the load transistor T_(L) by closing switchSW_(4′) or, respectively, switch SW_(3′) while the other switch is open.

The “low side” terminal of the decoupling capacitor C_(D2) is coupled toan input of a comparator K₁ whose output is coupled to a register 30which may be, for example a successive approximation register. A currentoutput digital-to-analog converter DAC is coupled to the cascodetransistor to sink the sense current i_(S) and is configured to set thesense current to an analog current value corresponding to the digitalinput value x_(COUNT) which generally is a n-bit binary word provided bythe register 30. The aim is to set the sense current i_(S) to such avalue that the source potentials V_(S) and V_(L), respectively, areequal. In this ideal matching state, the sense current i_(S) and theload current i_(L) are perfectly proportional. Generally, the n-bitbinary word x_(COUNT) supplied to the current output digital-to-analogconverter DAC, and thus the sense current i_(S), is varied (e.g., rampedup starting from an initial value) until the mentioned matchingcondition is achieved. This matching condition may be detected using thesense circuit 10, the decoupling capacitor C_(D2) and the comparator K₁.The detection process is outlined below.

A measurement cycle starts with varying the n-bit word x_(COUNT) andthereby setting the sense current i_(S) to a corresponding analogcurrent value. The variation may be, for example, increasing the currentregister value x_(COUNT). Then the charge stored on the capacitor C_(D2)is initialized. Therefore, switch SW₃ is closed thus coupling thecapacitor C_(D2) between the load transistor source and the comparatorinput. At the same time a defined potential is applied at the comparatorinput thus allowing the capacitor C_(D2) to charge to a voltagedetermined by the source voltage V_(L) and the mentioned definedpotential. For example, a switch SW₅ may be used to short circuit thecomparator thereby forcing the comparator input to a potential definedby the quiescent point of the comparator's internal input stage.Subsequently switch SW₅ is opened and, further, switch SW_(4′) is closedwhile switch SW_(3′) is opened, too. This switching results in a voltageswing at the comparator input equal to the potential differenceV_(S)−V_(L). In a perfect matching state this difference is zero and thecurrent register value is taken as measurement result X_(OUT). In caseof an insufficient matching the comparator K₁ detects the mentionedvoltage swing and the comparator output CMP triggers the register 30 to,again, vary the current register value x_(COUNT) and the cycle startsover. The cyclic repetition of the measurement cycles only stops when amatching state—and thus a sensible measurement value—is found, or if amaximum number of cycles passed without a result.

FIG. 5 c illustrates the complementary case to the example of FIG. 5 b.In this mode of operation (mode 2) the cascode transistor T_(C) pinchesoff the current flow as the source potential V_(S) of the cascodetransistor T_(C) (which is the same as the source potential of the sensetransistor T_(S)) is too low or even negative. Switch SW₁ is closed(therefore not shown in FIG. 5 c) and the effective circuit is the sameas already explained with reference to FIGS. 3 and 4. Theground-referenced measurement circuit is an analog-to-digital converterhaving a voltage input and a digital output. Theanalog-to-digital-converter may include a sample-and-hold circuit which“holds” the voltage swing of the decoupling capacitor C_(D1) during theanalog-to-digital-conversion.

The criterion for switching from mode 1 (effective circuit of FIG. 5 b)and mode 2 (effective circuit of FIG. 5 c) has already been mentionedabove. The mode switch may be initiated when the source potential V_(L)of the load transistor falls below (or vice versa rises above) a giventhreshold. It should be noted that a skilled person will have nodifficulties in implementing this particular function so this is notdescribed in more detail herein. Alternatively, a mode switch can beinitiated when in mode 1 a sensible measurement value can not be found.Further, a mode switch may be initiated dependent on the sourcepotential of the cascode transistor T_(C).

Although various exemplary embodiments of the invention have beendisclosed, it will be apparent to those skilled in the art that variouschanges and modifications can be made which will achieve some of theadvantages of the invention without departing from the spirit and scopeof the invention. It will be obvious to those reasonably skilled in theart that other components performing the same functions may be suitablysubstituted. It should be mentioned that features explained withreference to a specific figure may be combined with features of otherfigures, even in those where not explicitly been mentioned. Further, themethods of the invention may be achieved in either all softwareimplementations, using the appropriate processor instructions, or inhybrid implementations that utilize a combination of hardware logic andsoftware logic to achieve the same results. Such modifications to theinventive concept are intended to be covered by the appended claims.

What is claimed is:
 1. A circuit arrangement for measuring a loadcurrent provided to a load via a first load terminal of a loadtransistor, the circuit arrangement comprising: a sense transistoroperatively coupled to the load transistor to provide a sense currentrepresenting the load current at a first load terminal of the sensetransistor, wherein the first load terminals of the load and the sensetransistors are at respective floating electric potentials; a floatingsense circuit operatively coupled between the load terminals of thesense transistor and the load transistor, wherein at least in one modeof operation the sense circuit receives the sense current and provides afloating signal representing the sense current; a DC decouplingcapacitor; and a non-floating measurement circuit operatively coupled tothe sense circuit via the DC decoupling capacitor for transferring thefloating signal representing the sense current to the non-floatingmeasurement circuit, wherein the measurement circuit is configured toprovide an output signal representing the floating signal and thus thesense current.
 2. The circuit arrangement of claim 1, wherein thefloating sense circuit and the non-floating measurement circuit areconfigured to transfer the floating signal by switching the DCdecoupling capacitor.
 3. The circuit arrangement of claim 1, wherein thefloating sense circuit includes a shunt resistor conducting the sensecurrent and switching circuitry configured to connect one terminal ofthe DC decoupling capacitor either to a first or to a second terminal ofthe shunt resistor using semiconductor switches.
 4. The circuitarrangement of claim 3, wherein the measurement circuit is configured toapply a defined voltage to the DC decoupling capacitor while coupled tothe first terminal of the shunt resistor and to observe a voltage swingat a low side terminal of the DC decoupling capacitor when switching theDC decoupling capacitor from the first terminal of the shunt resistor tothe second terminal of the shunt resistor.
 5. The circuit arrangement ofclaim 4, wherein the measurement circuit includes an analog-to-digitalconverter configured to convert the voltage swing into a digital outputword.
 6. The circuit arrangement of claim 1, further comprising: adigital register providing a first digital word, a current outputdigital-to-analog converter coupled to the sense transistor andconfigured to set the sense current to a current value representing thefirst digital word, and a comparator that is sequentially capacitivelycoupled to the load terminals of the load transistor and the sensetransistor and is configured to compare the potentials at the loadterminals, wherein, in a second mode of operation, a digital registervalue is iteratively varied until either a matching of the potentials atthe load terminals is detected or a maximum number of iterations hasbeen reached.
 7. The circuit arrangement of claim 6, further comprisinga coupling capacitor which is connectable, via a controllable switch,between a comparator input and either the load terminal of the sensetransistor or the load terminal of the load transistor.
 8. The circuitarrangement of claim 6, wherein the digital register is a successiveapproximation register.
 9. The circuit arrangement of claim 6, whereinthe digital register is varied dependent on a comparator output which isindicative of whether the potentials of the load terminals match or ofwhich potential is higher.
 10. The circuit arrangement of claim 9,wherein the digital register value is increased to increase thedigital-to-analog-converter output current when the potential at theload terminal of the sense transistor is higher than of the loadtransistor, and vice versa.
 11. The circuit arrangement of claim 6,wherein the mode of operation is switched dependent on the potential ofthe load terminal of the load transistor or the sense transistor. 12.The circuit arrangement of claim 1, wherein the mode of operation isswitched dependent on the potential of the load terminal of the loadtransistor or the sense transistor.
 13. A method of measuring a currentof a sense transistor coupled to a load transistor, the methodcomprising: coupling a first terminal of a coupling capacitor to a firstterminal of a shunt resistor coupled between load terminals of the loadtransistor and the sense transistor during a first time period; couplingthe first terminal of the coupling capacitor to a second terminal of theshunt resistor during a second time period; measuring a voltagedifference between a voltage of a second terminal of the couplingcapacitor during the first time period and a voltage of the secondterminal of the coupling capacitor during the second time period; andgenerating a measurement signal based on the measured voltagedifference.
 14. The method of claim 13, wherein generating themeasurement signal comprises: applying an output of a current outputdigital-to analog converter to the load terminal; and updating asuccessive approximation register based on the measured voltagedifference.
 15. The method of claim 13, further comprising coupling theload terminal of the sense transistor to a reference node via a firstresistor when a voltage difference between the load terminal of the loadtransistor and the reference node is greater than a threshold voltage.16. A circuit comprising: a sensing circuit configured to be coupled toan output terminal of a load transistor via a first input terminal, anda load terminal of a sense transistor via a second input terminal,wherein the sensing circuit comprises a switching network configured toselectively couple the first input terminal and a second input terminalto an output node of the sensing circuit; and a measurement circuithaving an input capacitively coupled to an output of the sensingcircuit, wherein the measurement circuit is configured to provide anoutput value indicative of current of the sense transistor.
 17. Thecircuit of claim 16, further comprising: a resistor coupled between thefirst input terminal and the second input terminal; and a first switchcoupled between the resistor and the output node of the sensing circuit,wherein the first switch is configured to be closed when a voltage ofthe first input terminal is below a threshold voltage.
 18. The circuitof claim 17, wherein: the switching network is configured to couple afirst terminal of the resistor to the measurement circuit via a couplingcapacitor during a first time period, and then couple a second terminalof the resistor to the measurement circuit via the coupling capacitorduring a second time period; and the measurement circuit is configuredto measure a voltage difference at a terminal of the coupling capacitorbetween the first time period and the second time period, and generatethe output value indicative of current of the sense transistor based onthe measured voltage difference.
 19. The circuit of claim 16, furthercomprising: a current generator having an current output coupled to thesecond input terminal; the switching network is configured to couple oneof the first input terminal and the second input terminal to themeasurement circuit via a coupling capacitor during a first time period,and then couple the other one of the first input terminal and the secondterminal to the measurement circuit via the coupling capacitor during asecond time period; and the measurement circuit is configured to measurea voltage difference at a terminal of the coupling capacitor between thefirst time period and the second time period, and update an outputcurrent of the current generator based on the measured voltagedifference.
 20. The circuit of claim 19, wherein the current generatorcomprises a digital to analog converter, and the measurement circuit isconfigured to update the output current by updating a value of asuccessive register having an output coupled to an input of the digitalto analog converter.